﻿using AspectCore.DynamicProxy;
using Common;
using IService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    //[NonAspect]  //忽略拦截
    public class CustomService : ICustomService
    {
        //[CustomInterceptor]
        public void Call()
        {
            Console.WriteLine("service calling...");
        }

        [ServiceInterceptor(typeof(CustomInterceptorAttribute))]
        public EFOperatorResult GetResult(TestDto dto)
        {
            return new EFOperatorResult()
            {
                After = "之后",
                Before="之前",
                Msg="消息"
            };
        }



    }
}
